package com.winit.commons.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by wangjian on 16/8/9.
 */
//@Component
public class TaskCleaner {

//    @Scheduled(cron="0 */10 * * * ?")
    public void cleanTask(){
        TaskContainer taskContainer = TaskContainer.getInstance();
        taskContainer.cleanTimeOutTask();
    }
}
